<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>员工管理v2</title>
    <link rel="stylesheet" href="../bootstrap-3.4.1-dist/css/bootstrap.min.css">
    <script src="../jquery-1.11.3.min.js"></script>
    <script src="../bootstrap-3.4.1-dist/js/bootstrap.min.js"></script>
    <style>
        table td {
            width: 246px;
        }
    </style>
</head>
<body>
<nav class="navbar navbar-default">
    <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                    data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">员工管理系统</a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">
                <li class="active"><a href="#">Link <span class="sr-only">(current)</span></a></li>
                <li><a href="#">Link</a></li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
                       aria-expanded="false">Dropdown <span class="caret"></span></a>
                    <ul class="dropdown-menu">
                        <li><a href="#">Action</a></li>
                        <li><a href="#">Another action</a></li>
                        <li><a href="#">Something else here</a></li>
                        <li role="separator" class="divider"></li>
                        <li><a href="#">Separated link</a></li>
                        <li role="separator" class="divider"></li>
                        <li><a href="#">One more separated link</a></li>
                    </ul>
                </li>
            </ul>
            <form class="navbar-form navbar-left">
                <div class="form-group">
                    <input type="text" class="form-control" placeholder="Search">
                </div>
                <button type="submit" class="btn btn-default">Submit</button>
            </form>
            <ul class="nav navbar-nav navbar-right">
                <li><a href="#">后台管理</a></li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
                       aria-expanded="false">其他 <span class="caret"></span></a>
                    <ul class="dropdown-menu">
                        <li><a href="#">Action</a></li>
                        <li><a href="#">Another action</a></li>
                        <li><a href="#">Something else here</a></li>
                        <li role="separator" class="divider"></li>
                        <li><a href="#">Separated link</a></li>
                    </ul>
                </li>
            </ul>
        </div><!-- /.navbar-collapse -->
    </div><!-- /.container-fluid -->
</nav>

<div class="container-fluid">
    <div class="row">
        <div class="col-md-2">
            <div class="panel panel-primary">
                <div class="panel-heading">Panel heading without title</div>
                <div class="panel-body">
                    Panel content
                </div>
            </div>
            <div class="panel panel-info">
                <div class="panel-heading">Panel heading without title</div>
                <div class="panel-body">
                    Panel content
                </div>
            </div>
            <div class="panel panel-success">
                <div class="panel-heading">Panel heading without title</div>
                <div class="panel-body">
                    Panel content
                </div>
            </div>
        </div>
        <div class="col-md-10">
            <div class="panel panel-default">
                <!-- Default panel contents -->
                <div class="panel-heading">员工管理</div>
                <!-- Table -->
                <table class="table table-hover table-striped text-center">
                    <thead>
                    <tr>
                        <th class="text-center">ID</th>
                        <th class="text-center">name</th>
                        <th class="text-center">age</th>
                        <th class="text-center">dep</th>
                        <th class="text-center">action</th>
                    </tr>
                    </thead>
                    <tbody class="my_tbody">
                    <tr>
                        <td>1</td>
                        <td>hkw</td>
                        <td>21</td>
                        <td>开发</td>
                        <td>
                            <button class="btn btn-primary btn-sm btn_edit">编辑</button>
                            <button class="btn btn-danger btn-sm btn_del">删除</button>
                        </td>
                    </tr>
                    <tr>
                        <td>2</td>
                        <td>jon</td>
                        <td>22</td>
                        <td>销售</td>
                        <td>
                            <button class="btn btn-primary btn-sm btn_edit">编辑</button>
                            <button class="btn btn-danger btn-sm btn_del">删除</button>
                        </td>
                    </tr>
                    <tr>
                        <td>3</td>
                        <td>avin</td>
                        <td>23</td>
                        <td>运维</td>
                        <td>
                            <button class="btn btn-primary btn-sm btn_edit">编辑</button>
                            <button class="btn btn-danger btn-sm btn_del">删除</button>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <button class="btn btn-success pull-right" data-toggle="modal" data-target="#myModal">添加员工</button>

        </div>
    </div>
</div>

<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span>
                </button>
                <h4 class="modal-title" id="myModalLabel">添加员工</h4>
            </div>
            <div class="modal-body">
                <form action="" id="#model_form">
                    <div class="form-group">
                        <label for="emp_id">ID: </label>
                        <input type="text" placeholder="ID" id="emp_id" class="form-control get_v">
                    </div>
                    <div class="form-group">
                        <label for="emp_user">name: </label>
                        <input type="text" placeholder="name" id="emp_user" class="form-control get_v">
                    </div>
                    <div class="form-group">
                        <label for="emp_age">age: </label>
                        <input type="text" placeholder="age" id="emp_age" class="form-control get_v">
                    </div>
                    <div class="form-group">
                        <label for="emp_dep">dep: </label>
                        <select id="emp_dep" class="form-control get_v">
                            <option value="" selected disabled></option>
                            <option value="开发">开发</option>
                            <option value="销售">销售</option>
                            <option value="运维">运维</option>
                        </select>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                <button type="button" class="btn btn-primary" id="btn_save">Save changes</button>
            </div>
        </div>
    </div>
</div>

<script src="main.js"></script>

</body>
</html>